package joke.ibatis.dao;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import joke.ibatis.po.ParameterPo;
import joke.ibatis.po.RiddlesPo;

public class RiddlesImp extends SqlMapClientDaoSupport implements RiddlesDao {

	public RiddlesPo getRiddlesPo(String id) {
		RiddlesPo po = (RiddlesPo) getSqlMapClientTemplate().queryForObject(
				"getRiddlesPo", id);
		return po;
	}

	public RiddlesPo getRiddlesPoOrder(ParameterPo parpo) {
		RiddlesPo po = (RiddlesPo) getSqlMapClientTemplate().queryForObject(
				"getRiddlesPoOrder", parpo);
		return po;
	}

}
